﻿using PMIS.WebApi.Common.Attributes;
using SqlSugar;

namespace PMIS.WebApi.Model
{
    [MultiDbTenant]
    public class BaseModel: IDeletedFilter
    {
        [SugarColumn(ColumnDescription = "创建人ID", IsNullable = true)]
        public string CreatorId { get; set; }

        [SugarColumn(ColumnDescription = "创建时间", IsNullable = true, InsertServerTime = true, IsOnlyIgnoreUpdate = true)]
        public DateTime? CreateTime { get; set; }

        [SugarColumn(ColumnDescription = "修改人ID", IsNullable = true)]
        public string ModifierId { get; set; }

        [SugarColumn(ColumnDescription = "修改时间", IsNullable = true, UpdateServerTime = true, IsOnlyIgnoreInsert = true)]
        public DateTime? ModifyTime { get; set; }

        [SugarColumn(ColumnDescription = "是否已删除")]
        public bool IsDeleted { get; set; } = false;
    }
}
